package com.web3.management.dto.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 账号创建/更新请求
 */
@Data
public class AccountRequest {

    @NotBlank(message = "账号名称不能为空")
    @Size(max = 100, message = "账号名称不能超过100个字符")
    private String name;

    @Min(value = 0, message = "账号状态非法")
    @Max(value = 1, message = "账号状态非法")
    private Integer status = 1;

    private String cookies;

    @Size(max = 255, message = "CSRF Token长度不能超过255个字符")
    private String csrfToken;

    private String proxyConfig;

    private String remark;
}
